package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 微信发货信息管理配置请求对象
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "WechatShippingConfigRequest对象", description = "微信发货信息管理配置请求对象")
public class WechatShippingConfigRequest {

    @ApiModelProperty(value = "是否启用微信发货信息管理", required = true)
    @NotNull(message = "是否启用不能为空")
    private Boolean enabled;

    @ApiModelProperty(value = "是否自动上传发货信息")
    private Boolean autoUpload;

    @ApiModelProperty(value = "特殊商品处理方式，1-正常发货，2-特殊发货报备", allowableValues = "range[1,2]")
    private Integer specialMode;

    @ApiModelProperty(value = "失败重试次数，默认3次")
    private Integer retryTimes;

    @ApiModelProperty(value = "重试间隔时间（秒），默认30秒")
    private Integer retryInterval;
} 